<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script>
        /**
         * 原生JS
         */ 
        // window.onload = function(){
        //     var obj = document.getElementById('hello') // DOM对象
        //     console.log(obj.innerText)
        //     console.log(obj)
        // }

        /**
         * jQuery
         */
        $(function(){
            console.log($('#hello').text())
            console.log($('#hello')) // jQuery对象
        })
    </script>
</head>
<body>
    <div id="hello">嘿嘿</div>
</body>
</html>